﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

using Controller;
using Model;

namespace WCFService
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IWilkeService" in both code and config file together.
    [ServiceContract]
    public interface IWilkeService
    {
        [OperationContract]
        Bruger OpretBruger(string navn, string adresse, int postnr, string by, Int64 kontonr, int regnr,
            string mail, bool administrator, int telefonnr, string password);


        [OperationContract]
        Projekt OpretNyProjekt(string projektnavn, int projektstart, int projektslut);


        [OperationContract]
        Timer RegistrerTimer(DateTime timeStart, DateTime timeSlut, DateTime dato, Bruger bruger, Projekt projekt, // ? timeLog,
                     bool timeGodkendelse, bool timeUdbetalt);


        [OperationContract]
        void OpretKontrakt(int timeLøn, int kontraktType);


        [OperationContract]
        Bruger[] VisBrugere();


        [OperationContract]
        Projekt[] VisProjekter();


        [OperationContract]
        Projekt FindProjekt(int projektID);


        [OperationContract]
        Bruger FindBruger(int personID);
    }
}